﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VonaJobs.BLL;
using VonaJobs.DAL.DAO;

namespace VonaJobs.UI.Admin
{
    public partial class RoleSetup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void SaveNewRole(object sender,EventArgs eventArgs)
        {
            try
            {
                AdminRole adminRole=new AdminRole();
                AdminRoleManager adminRoleManager=new AdminRoleManager();
                adminRole.RoleName = txtRoleName.Value;
                string msg = adminRoleManager.SaveNewRole(adminRole);

            }
            catch (Exception)
            {
                
                throw;
            }
            
        }
    }
}